<!Doctype html>

<html>
	<head>
	<script>
		function getResult(){
			var httprequest;
			var key=document.getElementById("key").value;
			if(window.XMLHttpRequest){
				httprequest=new XMLHttpRequest();
			}
			else if(window.ActivXObject){
				httprequest=new ActiveXObject('Microsoft.XMLHTTP');
			}
			else {
				alert('No Support for ajax in your Browser');
			}
			httprequest.onreadystatechange=function(){
				if(httprequest.readyState==4 && httprequest.status==200){
				document.getElementById('result').innerHTML=httprequest.responseText;
				}
			};
			httprequest.open('GET','../controller/selectValue.php?key='+key,true);
			httprequest.send();
		}
	</script>
	
	</head>
	<body>
	<table>
		<tr><td>Enter Your Keyword:</td><td><input type='text' id='key' onkeyup='getResult()'></td>
	</table>
	<div id='result'>
	
	</div>
	
	</body>


</html>